<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>用户信息</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <!-- 引入 Bootstrap -->
    <link href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
    <style>
        .red{
            color: red;
        }
    </style>
</head>
<body>
<button onclick="window.history.back();" value="回退">回退</button>


<div class="container">

    <div class="row clearfix">
        <div class="col-md-12 column">
            <div class="page-header">
                <h1>
                    <small>用户信息</small>
                </h1>
            </div>
        </div>
    </div>

    <div class="row">
        <div class="col-md-4 column">

            <a class="btn btn-primary" href="${pageContext.request.contextPath}/user/tochanggeUserInformation">修改信息</a>
        </div>
    </div>



    <script src="https://cdn.bootcss.com/jquery/3.4.1/jquery.js"></script>


    <%--
        <div class="row">
            <div class="col-md-4 column">

                <a class="btn btn-primary" href="${pageContext.request.contextPath}/user/todeleteuser">删除用户</a>
            </div>
        </div>
        <div class="row">
            <div class="col-md-4 column">

                <a class="btn btn-primary" href="${pageContext.request.contextPath}/user/toupdateuser">更新用户</a>
            </div>
        </div>
    --%>


    <div class="row clearfix">
        <div class="col-md-12 column">
            <table class="table table-hover table-striped">
                <thead>
                <tr>
                    <th>用户账号</th>
                    <th>用户密码</th>
                    <th>用户姓名</th>
                    <th>用户性别</th>
                    <th>用户电话</th>
                    <th>用户部门</th>
                    <th>用户住址</th>
                    <th>用户电子邮箱</th>
                    <th>操作</th>


                </tr>
                </thead>

                <tbody id="userList">

                    <tr class="trclass">
                        <td>${user.userId}</td>
                        <td>${user.userPassword}</td>
                        <td>${user.username}</td>
                        <td>${user.usersex}</td>
                        <td>${user.userphone}</td>
                        <td>${user.userdepartment}</td>
                        <td>${user.useraddress}</td>
                        <td>${user.useremail}</td>

                            <%--<input type="button" value="修改" onclick="javascript: top.location.href = '/updateuser?userId=${user.user}'"/></td>--%>
                    </tr>


                </tbody>
            </table>
        </div>
    </div>
</div>

